package com.joinlabs.action;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/hello")
public class HelloAction {
	@RequestMapping("/showhello")
	@ResponseBody
   public Map<String,Object> showHelloworld(){
	   Map<String,Object> map=new HashMap<String,Object>();
	   map.put("msg", "helloword");
	return map;
	   
   }
	@RequestMapping("/show")
  public ModelAndView show() {
	  System.out.println("hspringboot");
	  return new ModelAndView("/Hello");
  }
}
